/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-09-18
 * Time:0:55
 */

/**
 * 单例模式:
 * 饿汉模式
 */

class singletonEh{
    private static Singleton2 instance = new Singleton2();

    public static Singleton2 getInstance(){
        return instance;
    }

    public singletonEh(){

    }
}

public class Singleton2 {

}
